package com.cz.video.common.vod.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用于解决vod回调参数中不能携带视频的一些元数据，回调请求中使用查询视频元数据的方法也无法 获取视频的视频元数据
 * @author 陈二狗
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VodCallbackEvent implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  @Schema(description = "视频id")
  private Long videoId;

  @Schema(description = "视频的vid")
  private String vid;

  @Schema(description = "视频url")
  private String fileUrl;

  @Schema(description = "文件大小")
  private Long size;

}
